package org.jeecg.modules.htxincailiao.cart.common;

import org.apache.commons.lang3.math.NumberUtils;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;

import java.math.BigDecimal;

public class HTCartHelper {

    public static BigDecimal calculateSubtotalAmount(BigDecimal retailPrice , Integer quantity){
        BigDecimal quantityDecimal = NumberUtils.createBigDecimal(String.valueOf(quantity));
       return retailPrice.multiply(quantityDecimal);
    }
}
